package com.ss.android.push.window.oppo;

import android.animation.ObjectAnimator;
import android.view.View;
import com.ss.android.push.window.oppo.PushWindowScrollView.a;


public final class e implements a {
    public final OppoPushWindowManager a;

    public e(OppoPushWindowManager arg1) {
        this.a = arg1;

    }

    public final void a() {
        ObjectAnimator v0_1;
        float[] v2_1;
        View v0;
        long v6 = 200;
        int v2 = 2;
        if(!this.a.n && this.a.o < 0) {
            if(-this.a.o < this.a.c.getMeasuredHeight() / 2) {
                v0 = this.a.c;
                v2_1 = new float[v2];
                v2_1[0] = ((float)this.a.o);
                v2_1[1] = 0f;
                v0_1 = ObjectAnimator.ofFloat(v0, "translationY", v2_1);
                v0_1.setDuration(v6);
                v0_1.start();
            }
            else {
                v0 = this.a.c;
                v2_1 = new float[v2];
                v2_1[0] = ((float)this.a.o);
                v2_1[1] = ((float)(-this.a.c.getMeasuredHeight()));
                v0_1 = ObjectAnimator.ofFloat(v0, "translationY", v2_1);
                v0_1.addListener(new g(this));
                v0_1.setDuration(v6);
                v0_1.start();
            }
        }
    }

    public final void a(float arg3) {
        if(!this.a.n) {
            this.a.o = ((int)((((float)this.a.o)) - arg3));
            if(this.a.o > 0) {
                this.a.o = 0;
            }

            this.a.c.setTranslationY(((float)this.a.o));
        }
    }

    public final void a(boolean arg6) {
        if(!this.a.n && (arg6)) {
            ObjectAnimator v0 = ObjectAnimator.ofFloat(this.a.c, "translationY", new float[]{((float)this.a.o), ((float)(-this.a.c.getMeasuredHeight()))});
            v0.addListener(new f(this));
            v0.setDuration(200);
            v0.start();
        }
    }
}

